package com.efast.dmom.mgmt.controller.mes;

import com.efast.cafe.framework.bean.ResultBean;
import com.efast.dmom.mgmt.service.mes.ImportFromDirectService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value="/importFromDirect")
public class ImportFromDirectController {
	@Autowired
	private ImportFromDirectService importFromDirectService ;
	
	//校验生产过程定义配置数量并返回配置信息
		@RequestMapping(value = "/importData")
		public @ResponseBody ResultBean importData(){
			ResultBean result=new ResultBean(true,"'");
			try {
				importFromDirectService.ImportDataFromDirectExcel();
			} catch (Exception e) {
				result.setSuccess(false);
				e.printStackTrace();
			}
			return result;
		}
		
	
}
